qt_add_plugin(CpeVendorHUAWEI
	CLASS_NAME CpeVendorHUAWEI
)

file(GLOB CPE_SOURCE_FILES *.ui *.rc *.h *.cpp *.json)
file(GLOB CPE_RESOURCE_FILES *.ui *.rc)
file(GLOB CPE_META_FILES *.json)

# 资源文件和插件元数据放到对应文件夹中
source_group("Resource Files" FILES ${CPE_RESOURCE_FILES})
source_group("Meta Files" FILES ${CPE_META_FILES})

target_sources(CpeVendorHUAWEI PRIVATE
    ${CPE_SOURCE_FILES}
)

target_link_libraries(CpeVendorHUAWEI PUBLIC
    Qt::Core
    Qt::Gui
    Qt::Widgets
    CpePluginManager
    CpeBar
)

target_include_directories(CpeVendorHUAWEI PUBLIC
	../CpePluginManager
	../CpeBar
)

target_link_directories(CpeVendorHUAWEI PUBLIC
	${CMAKE_BINARY_DIR}/lib
)

set_target_properties(CpeVendorHUAWEI PROPERTIES FOLDER "Plugin_Vendor")
